$OpenBSD: patch-yorick_Makefile,v 1.3 2013/10/11 08:39:26 espie Exp $
--- yorick/Makefile.orig	Sun Jul 12 06:16:14 2009
+++ yorick/Makefile	Fri Oct 11 10:34:59 2013
@@ -52,12 +52,14 @@ EXTRA_LIBS=$(ALT_LIBS)
 # hack combines gist, matrix, and fft libs into a single libyor.a
 # (this does not get inter-directory dependencies absolutely correct)
 BUILTIN_PKGS=../gist/libgist.a ../regexp/libyor ../matrix/libyor ../fft/libyor
-libyor: $(BUILTIN_PKGS)
+libyor: $(BUILTIN_PKGS) $(OBJS) ywrap.o
 	@rm -f $(PKG_LIB)
 	cp ../gist/libgist.a $(PKG_LIB)
 	cd ../regexp; $(MAKE) "COPT=$(COPT)" oinsert
 	cd ../matrix; $(MAKE) "COPT=$(COPT)" oinsert
 	cd ../fft; $(MAKE) "COPT=$(COPT)" oinsert
+	$(AR) $(ARFLAGS) ${PKG_LIB} $(OBJS) ywrap.o
+	$(RANLIB) ${PKG_LIB}
 	touch $@
 ../gist/libgist.a:
 	@cd ../gist; $(MAKE) "COPT=$(COPT)" libgist.a
